package com.yigang.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.yigang.dao.UpdateParameterDao;
import com.yigang.entity.UpdateParameter;
import com.yigang.service.UpdateParameterService;
import com.yigang.utils.ResultUtil;
@Service
@Transactional
public class UpdateParameterServiceImpl implements UpdateParameterService {

	@Autowired
	private UpdateParameterDao updateParameterDao;
	@Override
	public ResultUtil updateByPrimaryKeySelective(UpdateParameter record) {
		// TODO Auto-generated method stub
		updateParameterDao.updateByPrimaryKeySelective(record);
		return ResultUtil.ok();
	}

	@Override
	public UpdateParameter selectProductById(int product_id) {
		// TODO Auto-generated method stub
		return updateParameterDao.selectParameterById(product_id);
	}

}
